//
//  HomeWorkoutsRecord.swift
//  DaRings
//
//  Created by 尹琼 on 2022/10/28.
//

import UIKit

public class HomeWorkoutsRecordModel: HomeModel {
    
   
    public var date: String = ""
    public var targetTime: Int
    public var totalTimes: Int
    public var totalCalories: Int
    public var totalDuration: Int
    
    /// 测量按钮状态
    public var measureState: UIControl.State = .normal
    
    public init(date: String, goalHour: Int, totalTimes: Int, totalCalories: Int, totalDuration: Int) {
        self.date = date
        self.targetTime = goalHour
        self.totalTimes = totalTimes
        self.totalCalories = totalCalories
        self.totalDuration = totalDuration
        
    }
    
    public var targetTimeTitle: String {
        
        return targetTime.normalTitle
        
    }
    
    public var totalTimesTitle: String {
        return totalTimes.normalTitle
        
    }
    
    public var totalCaloriesTitle: String {
        return totalCalories.normalTitle
        
    }
    
    public var totalDurationTitle: String {
        return totalDuration.normalTitle
        
    }
    

}
